﻿using FluentNHibernate.Mapping;
using SimpleScrum.Core.Entities;

namespace SimpleScrum.Core.Mappings
{
    public class WebpagesUserInRolesMap : ClassMap<WebpagesUserInRoles>
    {
        public WebpagesUserInRolesMap()
        {
            Table("webpages_UserInRoles");
            //LazyLoad();
            Id(x => x.UserId).Column("UserId");
            References(x => x.Role).Column("RoleId").Cascade.All();
        }
    }
}